#!/bin/sh

cd /Users/apple/work/workspace-meilishuo/android-performance/src/main/resources
#path--target/android-info/net/dat
cd ../../../
mkdir -p target/ios-info/dat
mkdir -p target/ios-info/html
cp src/main/resources/jscharts.js target/ios-info/html
cd target/ios-info/dat


while true
do
    /usr/local/bin/sshpass -p "Qweras" ssh mobile@iphone "sh /var/mobile/work/top.sh" >> /Users/apple/work/workspace-meilishuo/android-performance/target/ios-info/dat/top.dat
    sleep 15
done
